﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index1.aspx.cs" Inherits="AnyOffice.general.email.index" %>

<%@ Reference Page="~/general/index.aspx" %>
<HTML>
	<HEAD>
		<title>内部邮件</title>
		
		<script Language="JavaScript">
		window.setTimeout('this.location.reload();',60000);
		</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
         <div class="main_div">
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/menu/email.gif" WIDTH="22" HEIGHT="18" align="absMiddle"><span class="big3">
							内部邮件</span>
					</td>
				</tr>
			</table>
			<br>
			<table width="500" cellSpacing="0" cellPadding="0" border="0" class="tab_pub" align="center">
				<tr class="TableHeader">
					<td nowrap align="center" width="40%">邮件箱</td>
					<td nowrap align="center" width="60%">邮件数</td>
				</tr>
				<tr class="TableData">
					<td nowrap>
						<a href="inbox.aspx?box_id=0" style="font-size:14px">
						<img src="/images/menu/inbox.gif" align="absMiddle" border="0">
						收件箱</a>
						<asp:Image id="imgNew" runat="server" ImageUrl="/images/email_new.gif" Visible="False"></asp:Image>
					</td>
					<td>
						<asp:Literal id="litInboxNums" runat="server"></asp:Literal>（<asp:Literal id="litInboxNewNums" runat="server"></asp:Literal>封新邮件）
					</td>
				</tr>
				<tr class="TableData">
					<td nowrap>
						<a href="outbox.aspx" style="font-size:14px">
						<img src="/images/menu/outbox.gif" align="absMiddle" border="0">
						发件箱</a>
					</td>
					<td><asp:Literal id="litOutboxNums" runat="server"></asp:Literal></td>
				</tr>
				<asp:Repeater id="rptBox" runat="server">
				<ItemTemplate>
				<tr class="TableData">
					<td nowrap>
					<a href="inbox.aspx?box_id=<%#Eval("BoxId")%>" style="font-size:14px">
					<img src="/images/menu/inbox.gif" align="absMiddle" border="0">					
					<%#Eval("BoxName")%>
					</a>
					<%#Convert.ToInt32(Eval("NewNums")) > 0 ? "<img src='/images/email_new.gif' border='0'>" : ""%>
					</td>
					<td>
						<%#Eval("Nums")%>（<%#Eval("NewNums")%>封新邮件）
					</td>			
				</tr>				
				</ItemTemplate>
				</asp:Repeater>
				<tr class="TableContent">
					<td nowrap align="center"><b>合计：</b></td>
					<td nowrap>
						<asp:Literal id="litTotalNums" runat="server"></asp:Literal>（<asp:Literal id="litNewNums" runat="server"></asp:Literal>封新邮件）
					</td>
				</tr>				
				<tr class="TableControl">
					<td align="center" colspan="3">
						<input type="button" value="写新邮件" class="bnt02" width="70" onClick="location='new.aspx'" title="撰写新的内部邮件">
						<input type="button" value="查询邮件" class="bnt02" width="70" onClick="location='query.aspx'" title="内部邮件查询">
						<input type="button" value="邮件箱管理" class="bnt02" width="70" onClick="location='box.aspx'" title="邮件箱管理">
					</td>
				</tr>
				<tr class="TableData">
				    <td align="center" colspan="3">
				       <TABLE width="450" align="center">				
			            <TR>
				            <TD>0</TD>
				            <TD width="50%">
					            <TABLE width="100%" class="small" cellSpacing="1" cellPadding="1" width="100%" bgColor="#9EC4E8" border="0">				
					            <TR>
						            <TD width="<%=ViewState["Percent"] %>%" height="16" bgcolor="#F6AA58"></TD>
						            <TD width="<%=100-Convert.ToInt32(ViewState["Percent"]) %>%" height="16" bgcolor="#ffffff"></TD>						
					            </TR>
					            </TABLE>
				            </TD>
				            <TD width="50%" nowrap><asp:Literal id="litWholeStatic" runat="server"></asp:Literal></TD>
			            </TR>
		            </TABLE>
				    
				    </td>
				</tr>
			</table>
				</div>		
		</form>
	</body>
</HTML>
